package com.zgm.ch06.aop.aspectJ.annotation._1;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class LoggingAspect {
	
	@Around("execution(* com.zgm.ch06.aop.aspectJ.annotation._1.TestBean.*(..))")
	public Object log(ProceedingJoinPoint pjp) throws Throwable {
		System.out.println("before:");
		Object ret = pjp.proceed();
		System.out.println("after");
		
		return ret;
	}
}
